package Practice05;

public class Circle extends Geometry {
    double r;
    Circle(double r) {
        this.r = r;
    }
   //重写 getArea()方法
    public double getArea() {
        return Math.PI*r*r;
    }
}